import request from '@/utils/request'

// 查询event列表
export function listYxsj(query) {
  return request({
    url: '/event/yxsj/list',
    method: 'get',
    params: query
  })
}

// 查询event详细
export function getYxsj(xh) {
  return request({
    url: '/event/yxsj/' + xh,
    method: 'get'
  })
}

// 新增event
export function addYxsj(data) {
  return request({
    url: '/event/yxsj',
    method: 'post',
    data: data
  })
}

// 修改event
export function updateYxsj(data) {
  return request({
    url: '/event/yxsj',
    method: 'put',
    data: data
  })
}

// 删除event
export function delYxsj(xh) {
  return request({
    url: '/event/yxsj/' + xh,
    method: 'delete'
  })
}
